MosaicTabletop::Application.routes.draw do
  #get "home/index"
  root :to => "home#index"

  match "api/discussions/join" => "discussions#join", :via => :post
  match "api/discussions/:id" => "discussions#show", :via => :get, :as => "discussion"
  match "api/discussions/:id/posts" => "posts#post_list", :via => :get
  match "api/discussions/:id/posts" => "posts#create", :via => :post
end
